<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html class="no-js">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>爱帮诊</title>
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="icon" type="image/png" href="/Public/assets/i/favicon.png">
    <link rel="stylesheet" href="/Public/assets/css/amazeui.min.css">
    <link rel="stylesheet" href="/Public/assets/css/app.css">
    <style>
        .yl-table td {
            border: solid 2px #F2F2F2;
        }

        .yl-img-list {
            width: 100%;
        }

        .yl-p-list {
            margin-bottom: 0;
            font-size: 12px;
        }

        .yl-hr {
            margin-bottom: 0;
            border: solid #F2F2F2 5px;
        }

        .header-1 {
            background-color: #42AD84;
            color: #fff;
        }

        .dv-w {
            background-color: #fff;
        }

        .a-c {
            color: #fff;
        }

        .button-1 {
            margin-top: 2rem;
        }
    </style>
</head>
<body style="background-color: #EFEFEF;">
<!-- Header -->
<header data-am-widget="header" class="am-header am-header-default header-1">
    <div class="am-g">
        <div class="am-u-sm-4"><a href="#" onclick="javascript:history.go(-1);" class="a-c"><</a></div>
        <div class="am-u-sm-4" style="text-align: center;"><?php echo ($str); ?></div>
        <div class="am-u-sm-4" style="text-align: right;"></div>
    </div>
</header>

<!--内容列表-->
<?php if(is_array($datas)): foreach($datas as $key=>$da): ?><div class="dv-w">
        <hr class="yl-hr"/>
        <section class="am-panel am-panel-success">
            <header class="am-panel-hd">
                <h3 class="am-panel-title"><?php echo ($da["hospital"]); ?></h3>
                <!--<?php echo ($da["docs"]); ?>-->
            </header>
            <div class="am-panel-bd">
                <?php if(is_array($da["docs"])): foreach($da["docs"] as $key=>$do): ?><div class="am-g">
                        <?php if($do["sta"] == 1): ?><div class="am-u-sm-3"><img src="<?php echo ($do["img"]); ?>" class="yl-img-list"/></div>
                            <?php else: ?>
                            <div class="am-u-sm-3"><img src="/Public/img/wp/<?php echo ($do["img"]); ?>" class="yl-img-list"/></div><?php endif; ?>
                        <div class="am-u-sm-6">
                            <h5><?php echo ($do["name"]); ?>(<?php echo ($do["m_title"]); ?>)</h5>
                            <p class="yl-p-list"><?php echo ($do["desc"]); ?></p>
                        </div>
                        <div class="am-u-sm-3">
                            <a href="<?php echo U('Index/mingyuyue');?>">
                                <button type="button" class="am-btn am-btn-warning am-radius button-1">预约</button>
                            </a>
                        </div>
                    </div>
                    <hr class="yl-hr"/><?php endforeach; endif; ?>
            </div>
        </section>
    </div><?php endforeach; endif; ?>

<!--end-->

<!-- Navbar -->
<div data-am-widget="navbar" class="am-navbar am-cf am-navbar-default"
     id="">
    <ul class="am-navbar-nav am-cf am-avg-sm-4" style="background-color: #fff;">
        <li>
            <a href="<?php echo U('Index/index');?>" style="color: #676767;">
                <i class="am-icon-home am-icon-sm"></i>
                <span class="am-navbar-label">首页</span>
            </a>
        </li>
        <li>
            <a href="<?php echo U('Index/minghospitalList');?>" style="color: #42AD84;">
                <i class="am-icon-hospital-o am-icon-sm"></i>
                <span class="am-navbar-label">医院</span>
            </a>
        </li>
        <li>
            <a href="<?php echo U('Index/mingFind');?>" style="color: #676767;">
                <i class="am-icon-paper-plane-o am-icon-sm"></i>
                <span class="am-navbar-label">发现</span>
            </a>
        </li>
        <li>
            <a href="<?php echo U('User/wode');?>" style="color: #676767;">
                <i class="am-icon-user-secret am-icon-sm"></i>
                <span class="am-navbar-label">我的</span>
            </a>
        </li>
    </ul>
</div>
<script src="/Public/assets/js/jquery.min.js"></script>
<script src="/Public/assets/js/amazeui.min.js"></script>
</body>
</html>